package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IAlertRuleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 设备上报数据报警定时任务
 *
 * @author mr.chen
 * @date 2025-05-25
 */
@Component
@Slf4j
public class AlertJob {

    @Autowired
    private IAlertRuleService alertRuleService;

    /**
     * 设备上报数据报警定时任务
     */
    public void deviceDataAlertFilter(){
        log.info("开始执行设备上报数据报警定时任务");
        alertRuleService.alertFilter();
    }
}